﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:views="clr-namespace:EyeSoft.Demo.FiscalCode.Wpf.Views"
	xmlns:viewModels="clr-namespace:EyeSoft.Demo.FiscalCode.Wpf.ViewModels" mc:Ignorable="d" x:Class="EyeSoft.Demo.FiscalCode.Wpf.MainWindow"
	Title="EyeSoft - Italian FiscalCode v. 1.1"
	Width="355"	
	Height="260"
	ResizeMode="CanMinimize"
	WindowStartupLocation="CenterScreen">
	<Window.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="Themes\Generic.xaml" />
			</ResourceDictionary.MergedDictionaries>
			<DataTemplate x:Key="Main" DataType="viewModels:MainViewModel">
				<Grid>
					<views:FiscalCode Margin="10" DataContext="{Binding FiscalCode}" />
				</Grid>
			</DataTemplate>
		</ResourceDictionary>
	</Window.Resources>
	<ContentControl Content="{Binding}" ContentTemplate="{StaticResource Main}" />
</Window>